package com.sann.eduservice.service;

import com.sann.eduservice.entity.course.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sann.eduservice.entity.course.vo.CourseInfoVo;
import com.sann.eduservice.entity.course.vo.CoursePublishVO;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author zjw
 * @since 2021-04-17
 */
public interface CourseService extends IService<Course> {

    String insert(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourseInfoVoById(String courseId);

    int updateCourseInfo(CourseInfoVo courseInfoVo);

    CoursePublishVO getCoursePublishById(String courseId);

    boolean publishCourseByCourseId(String courseId);

    void delete(String courseId);
}
